<template>
    <view class="splash-screen">
        <image class="logo" src="/static/logo.png" />
        <text class="title">欢迎使用我们的应用！</text>
    </view>
</template>

<script setup>
import { onMounted } from 'vue';
import { HOME_PAGE, LOGIN_PAGE } from '@/config';
import { useUserStore } from '@/store/user'

const userStore = useUserStore()

onMounted(() => {
    // 模拟启动页显示3秒后跳转到主页
    setTimeout(() => {
        uni.switchTab({
            url: HOME_PAGE
        })
    }, 50);
});
</script>

<style scoped>
.splash-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    color: #333333;
}
</style>